package com.hh.system.util.model;

public class ReturnModel {
	public static String ICON_ERROR = "x-message-box-error";
	public static String ICON_INFO = "x-message-box-info";
	public static String ICON_QUESTION = "x-message-box-question";
	public static String ICON_WARNING = "x-message-box-warning";

	
	public static String TYPE_OK = "ok";
	public static String TYPE_OK_CANCEL = "ok_cancel";
	public static String TYPE_YES_NO_CANCEL = "yes_no_cancel";
	private String href;
	private String icon = ICON_INFO;

	public ReturnModel(String type, String msg) {
		this.type = type;
		this.msg = msg;
	}

	public ReturnModel(String msg) {
		this.msg = msg;
	}

	public ReturnModel() {
	}

	// 0=info;
	private String type = TYPE_OK;
	private String msg = "无信息！！";
	private String titleMsg = "提示";

	

	public String getType() {
		return type;
	}

	public ReturnModel setType(String type) {
		this.type = type;
		return this;
	}

	public String getMsg() {
		return msg;
	}

	public ReturnModel setMsg(String msg) {
		this.msg = msg;
		return this;
	}

	public String getTitleMsg() {
		return titleMsg;
	}

	public ReturnModel setTitleMsg(String titleMsg) {
		this.titleMsg = titleMsg;
		return this;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

}
